package com.ruoyi.teaching.domain.vo;


import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.teaching.domain.HighInterview;
import lombok.Data;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @Version 1.0.0
 * @Description TODO
 * @Author sunshine
 * @Date 2024/01/25
 */
@Data
public class InterviewMaseryList extends HighInterview {
    private Integer score;
    private String lastCreateBy;
    private String degree;
    private String summarize;

    public List<String> getHisDegree() {
        if (StringUtils.isEmpty(degree)){
            return Collections.emptyList();
        }
        return Arrays.asList(degree.split(","));
    }
}
